import Vue from 'vue'
import App from './App.vue'
import store from './store';
import router from './router';
import hljs from 'highlight.js';
import 'highlight.js/styles/googlecode.css';
Vue.config.productionTip = false

Vue.directive('highlight' , function(el){
   var blocks = el.querySelectorAll('pre code');
   blocks.forEach((item)=>{
    hljs.highlightBlock(item)
   })
})

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
